package com.example.human_resource_management.service;

import com.example.human_resource_management.entry.po.Department;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【department(部门表)】的数据库操作Service
* @createDate 2025-06-09 08:49:00
*/
public interface DepartmentService extends IService<Department> {
    // 查询所有部门
    List<Department> getAllDepartments();

    // 按ID查询部门
    Department getDepartmentById(Long deptId);

    // 添加部门
    boolean addDepartment(Department department);

    // 更新部门
    boolean updateDepartment(Department department);

    // 删除部门
    boolean deleteDepartment(Long deptId);
}
